package com.automation.fitness.core.common;

public class MathUtil {
    public static double roundToNearest(double number, int numDigits) {
        double factor = Math.pow(10, numDigits);
        return Math.round(number / factor) * factor;
    }
}
